package com.banyuan.lesson.输入输出流;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

public class TestBufferedWriter {
    public static void main(String[] args) {
        try(BufferedWriter bw = new BufferedWriter(new FileWriter("bbb.txt"))){
            bw.write("ssdfasasad",0,3);
            bw.newLine();
            bw.write("aaa");
            bw.newLine();
            bw.write("bbb");
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}
